local ddcl = require "ddcl"
ddcl.init()
ddcl.open_all()

local service = require "ddcl.service"
local mysql_client = require "ddcl.mysql.client"
local inspect = require "ddcl.inspect"


service.start(function()

    local client = mysql_client({
        host = "127.0.0.1",
        port = 3306,
        user = "root",
        password = "",
        database = "fblog_soul_hunter",
    })

    local now = ddcl.now()
    local res = client.query("desc t_play_log")
    print(inspect(res))
    local res = client.query("select * from t_play_log")
    print(inspect(res))

    print(ddcl.now() - now)

    service.sleep(10000)
    local res = client.query("select * from t_play_log")
    print(inspect(res))
end)
